package stu.sup.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import stu.sup.entity.UserInfo;
import stu.sup.mapper.UserInfoMapper;
import stu.sup.service.IUserInfoService;

import java.util.List;

/**
 * 本类用来演示：
 *
 * @author:Administrator
 * @data:2020/6/23 0023
 */
@Service
@Transactional
public class UserInfoServiceImpl implements IUserInfoService {
    @Autowired
    private UserInfoMapper userInfoMapper;

    @Override
    public int save(UserInfo userInfo) {
        return userInfoMapper.insert(userInfo);
    }

    @Override
    public int updateByPrimaryKeySelective(UserInfo userInfo) {
        return userInfoMapper.updateByPrimaryKeySelective(userInfo);
    }

    @Override
    public List<UserInfo> findByConditional(UserInfo userInfo) {
        return userInfoMapper.findByConditional(userInfo);
    }

    @Override
    public UserInfo findByUserLoginId(Integer userLoginId) {
        return userInfoMapper.findByUserLoginId(userLoginId);
    }


}
